package cn.zyzpp.dao;

import cn.zyzpp.entity.resume.Internship;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Create by yster@foxmail.com 2018/5/21/021 17:46
 */
@Repository
public interface InternshipDao extends JpaRepository<Internship, Integer> {
    List<Internship> findAllByUid(int uid);

    int deleteAllById(int id);

    Internship findAllById(int id);

    Internship findByUid(int uid);
}
